package com.cong.outlets.service;

import com.cong.outlets.entity.OutletsLens;
import org.springframework.stereotype.Service;

import java.util.ArrayList;
import java.util.List;

/**
 * @author cong
 * @since 2023/10/20 14:20
 */
@Service
public class OutletsLensService {


    public List<OutletsLens> listByOutletsId(Long outletsId) {
        //生成测试数据，正常流程是通过数据库查询
        ArrayList<OutletsLens> list = new ArrayList<>(10);
        for (int i = 1; i < 10; i++) {
            OutletsLens outletsLens = new OutletsLens();
            outletsLens.setOutletsId(outletsId);
            outletsLens.setLensId((long) i);
            list.add(outletsLens);
        }
        return list;

    }
}
